package com.ruoyi.youtian.mapper;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.youtian.domain.TWorkspacePoint;

/**
 * 点位与工作区关联Mapper接口
 * 
 * @author ruoyi
 * @date 2022-09-16
 */
public interface TWorkspacePointMapper 
{
    /**
     * 查询点位与工作区关联
     * 
     * @param id 点位与工作区关联主键
     * @return 点位与工作区关联
     */
    public TWorkspacePoint selectTWorkspacePointById(Long id);

    /**
     * 查询点位与工作区关联列表
     * 
     * @param tWorkspacePoint 点位与工作区关联
     * @return 点位与工作区关联集合
     */
    @DataScope(deptAlias = "d")
    public List<TWorkspacePoint> selectTWorkspacePointList(TWorkspacePoint tWorkspacePoint);

    /**
     * 新增点位与工作区关联
     * 
     * @param tWorkspacePoint 点位与工作区关联
     * @return 结果
     */
    public int insertTWorkspacePoint(TWorkspacePoint tWorkspacePoint);

    /**
     * 修改点位与工作区关联
     * 
     * @param tWorkspacePoint 点位与工作区关联
     * @return 结果
     */
    public int updateTWorkspacePoint(TWorkspacePoint tWorkspacePoint);

    /**
     * 删除点位与工作区关联
     * 
     * @param id 点位与工作区关联主键
     * @return 结果
     */
    public int deleteTWorkspacePointById(Long id);

    /**
     * 批量删除点位与工作区关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTWorkspacePointByIds(String[] ids);

    /**
     *  根据工作区Id和点位Id 删除点位与工作区记录
     * @param tWorkspacePoint
     * @return
     */
    public int deleteTWorkspacePointByTWorkspacePoint(TWorkspacePoint tWorkspacePoint);
}
